package com.alinesno.cloud.initializr.starter.entity;

import com.alinesno.cloud.common.facade.mapper.entity.BaseEntity;
import com.alinesno.sdk.generator.table.annotation.ColumnComment;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import cn.afterturn.easypoi.excel.annotation.Excel;

/**
 * 功能名： 数据库管理
 * 数据表：  initializr_db_list
 * 表备注： 数据库配置管理
 *
 * @author alinesno
 * @date 2021-05-10
 */
@TableName("initializr_db_list")
public class InitializrDbListEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ColumnComment("描述")
    @Excel(name = "描述")
    @TableField("db_desc")
    private String dbDesc;

    // fields
    /**
     * 数据库名称
     */
    @ColumnComment("数据库名称")
    @Excel(name = "数据库名称")
    @TableField("db_name")
    private String dbName;
    /**
     * 数据库连接
     */
    @ColumnComment("数据库连接")
    @Excel(name = "数据库连接")
    @TableField("db_url")
    private String dbUrl;
    /**
     * 数据库用户名
     */
    @ColumnComment("数据库用户名")
    @Excel(name = "数据库用户名")
    @TableField("db_username")
    private String dbUsername;
    /**
     * 数据库密码
     */
    @ColumnComment("数据库密码")
    @Excel(name = "数据库密码")
    @TableField("db_passwd")
    private String dbPasswd;
    /**
     * 数据库连接端口
     */
    @ColumnComment("数据库连接端口")
    @Excel(name = "数据库连接端口")
    @TableField("db_port")
    private String dbPort;

    /**
     * 数据库类型
     */
    @ColumnComment("数据库类型")
    @Excel(name = "数据库类型")
    @TableField("db_type")
    private String dbType;

    @ColumnComment("作者名")
    @Excel(name = "作者名")
    @TableField("author")
    private String author;

    @ColumnComment("生成包路径")
    @Excel(name = "生成包路径")
    @TableField("package_path")
    private String packagePath;

    @ColumnComment("模块名")
    @Excel(name = "模块名")
    @TableField("module_name")
    private String moduleName;

    @ColumnComment("生成类型")
    @Excel(name = "生成类型")
    @TableField("create_type")
    private String createType; // 生成类型(Java|Vue|Html|PHP)


    //getter and setter


    public String getAuthor() {
        return author;
    }

    public InitializrDbListEntity setAuthor(String author) {
        this.author = author;
        return this;
    }

    public String getPackagePath() {
        return packagePath;
    }

    public InitializrDbListEntity setPackagePath(String packagePath) {
        this.packagePath = packagePath;
        return this;
    }

    public String getModuleName() {
        return moduleName;
    }

    public InitializrDbListEntity setModuleName(String moduleName) {
        this.moduleName = moduleName;
        return this;
    }

    public String getCreateType() {
        return createType;
    }

    public InitializrDbListEntity setCreateType(String createType) {
        this.createType = createType;
        return this;
    }

    public String getDbType() {
        return dbType;
    }

    public String getDbDesc() {
        return dbDesc;
    }

    public void setDbDesc(String dbDesc) {
        this.dbDesc = dbDesc;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getDbPort() {
        return dbPort;
    }

    public void setDbPort(String dbPort) {
        this.dbPort = dbPort;
    }

    public String getDbName() {
        return this.dbName;
    }

    public InitializrDbListEntity setDbName(String arg) {
        this.dbName = arg;
        return this;
    }

    public String getDbUrl() {
        return this.dbUrl;
    }

    public InitializrDbListEntity setDbUrl(String arg) {
        this.dbUrl = arg;
        return this;
    }

    public String getDbUsername() {
        return this.dbUsername;
    }

    public InitializrDbListEntity setDbUsername(String arg) {
        this.dbUsername = arg;
        return this;
    }

    public String getDbPasswd() {
        return this.dbPasswd;
    }

    public InitializrDbListEntity setDbPasswd(String arg) {
        this.dbPasswd = arg;
        return this;
    }
}
